package com.jsftoolkit.gen.config;

import javax.xml.xpath.XPathExpressionException;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

/**
 * Interface for components that update Facelets taglib files.
 * 
 * @author noah
 * 
 */
public interface TaglibEditor {
	/**
	 * Creates or updates and returns the appropriate tag element.
	 * 
	 * @param doc
	 * @param tagName
	 * @param componentType
	 * @param rendererType
	 * @return the tag element
	 * @throws XPathExpressionException
	 */
	Element registerTag(Document doc, String tagName, String componentType,
			String rendererType) throws XPathExpressionException;
}
